package com.zrwl.poscloud.base.constants;

/**
 * @author liuxiaolong
 * @date 2022/7/23
 * @description
 */
public class WithholdLogConstants {

    /***
     * status
     */
    public static final int deleted = 0;
    public static final int create = 1;//新增
    public static final int sent = 2;//已发送
    public static final int received = 3;//已收到成功响应
    public static final int succeed = 4;//成功
    public static final int error = 5;//失败
    public static final int pending_refund = 6;//待退款
    public static final int pending_cash_wx = 6;//待提现


    public static final int errorCode_response = 0;//响应失败
    public static final int errorCode_rest = 1;//其他异常
    public static final int errorCode_succeed = 2;//成功
    public static final int errorCode_finish = 3;//该批次已结束收费
    public static final int errorCode_nonentity = 4;//余额账户不存在
    public static final int errorCode_balance = 5;//账户余额不足
    public static final int errorCode_log_save = 6;//账户变动记录保存异常
    public static final int errorCode_save = 7;//账户信息保存异常
    public static final int errorCode_unwithdrawn = 8;//未提现

    /***
     * type
     */
    public static final int type_real_estate = 1;//物业费
    public static final int type_rent = 2;//租金
    public static final int type_water = 3;//水费
    public static final int type_pre_top_up = 4;//预充值
    public static final int type_cash = 5;//押金
    public static final int type_overpay = 6;//欠费充值
    public static final int type_account_recharge = 7;//账户代充
    public static String getTypeName(int type) {
        switch (type) {
            case type_real_estate:
                return "物业费";
            case type_rent:
                return "房租租金";
            case type_water:
                return "水费";
            case type_pre_top_up:
                return "预充值";
            case type_cash:
                return "押金";
            case type_overpay:
                return "欠费充值";
            case type_account_recharge:
                return "账户代充";
            default:
                return "其他";
        }
    }
}
